<?php
/**
 * Created by PhpStorm.
 * User: zhang
 * Date: 2016/3/18
 * Time: 19:44
 */
namespace Chealth\Model;
use Think\Model;
class ChealthCommentModel extends Model
{
    protected $_validate = array(
        array('uid','require','请登陆后再留言', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
    );

    protected $_auto = array(
        array('create_time', 'time', self::MODEL_INSERT, 'function'),
        array('update_time', 'time', self::MODEL_UPDATE, 'function')
    );
}